/*
 * DBCheckApp.java
 */

package com.fernandomartines.dbcheck;

import com.fernandomartines.dbcheck.app.view.DBCheckView;
import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;

public class DBCheckApp extends SingleFrameApplication {

    public static final java.io.PrintStream DEBUG = System.err;

    @Override protected void startup() {
        setLookAndFeel();
        show(new DBCheckView(this));
    }

    @Override protected void configureWindow(java.awt.Window root) {
    }

    public static DBCheckApp getApplication() {
        return Application.getInstance(DBCheckApp.class);
    }

    public static void main(String[] args) {
        System.setErr(DEBUG);
        launch(DBCheckApp.class, args);
    }
    
    private void setLookAndFeel() {
        javax.swing.JFrame.setDefaultLookAndFeelDecorated(false);
        try {
            System.setErr(DEBUG);
            javax.swing.UIManager.setLookAndFeel(new org.jvnet.substance.skin.SubstanceBusinessBlackSteelLookAndFeel());
        } catch (Exception e) {
            System.err.println("#ERROR: Look and Feek: " + e.getMessage());
        }
    }

}
